package com.wc.AlgoOJ.CT0213;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

/**
 * @Author congge
 * @Date 2024/1/19 2:29
 * @description blg的梦境
 * http://43.138.190.70:8888/p/CT0213
 */
public class Main {
    static int N = 310;
    static int n, m, k;
    static int[][] a = new int[N][N];
    static FastReader sc = new FastReader();
    static PrintWriter out = new PrintWriter(System.out);
    static int[] posX = new int[]{-1, -1, 1, 1, 0, 0, -1, 1};
    static int[] posY = new int[]{-1, 1, 1, -1, 1, -1, 0, 0};
    static double[] pow = new double[]{0.5, 1, 1.5, 2};

    public static void main(String[] args) {
        n = sc.nextInt();
        m = sc.nextInt();
        k = sc.nextInt();
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= m; j++) {
                a[i][j] = sc.nextInt();
            }
        }
        String s = "see you next year";
        for (int i = 0; i < 4; i++) {
            double powPer = pow[i];
            boolean flg = false;
            int minAllPower = 8 * 10000 + 1;
            for (int x = 2; x < n; x++) {
                for (int y = 2; y < m; y++) {
                    int tmpPow = 0;
                    boolean isFill = true;
                    for (int p = 0; p < 8; p++) {
                        int nx = x + posX[p];
                        int ny = y + posY[p];
                        if (a[nx][ny] > k * powPer) {
                            isFill = false;
                            break;
                        }
                        tmpPow += a[nx][ny];
                    }
                    if (isFill) {
                        flg = true;
                        minAllPower = Math.min(minAllPower, tmpPow);
                    }
                }
            }

            if (flg) {
                s = String.valueOf(minAllPower);
                break;
            }
        }
        out.println(s);
        out.flush();
    }
}

class FastReader {
    StringTokenizer st;
    BufferedReader br;

    FastReader() {
        br = new BufferedReader(new InputStreamReader(System.in));
    }

    String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    int nextInt() {
        return Integer.parseInt(next());
    }

    String nextLine() {
        String s = "";
        try {
            s = br.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return s;
    }

    long nextLong() {
        return Long.parseLong(next());
    }

    double nextDouble() {
        return Double.parseDouble(next());
    }

    // 是否由下一个
    boolean hasNext() {
        while (st == null || !st.hasMoreTokens()) {
            try {
                String line = br.readLine();
                if (line == null)
                    return false;
                st = new StringTokenizer(line);
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return true;
    }
}
